Package com.bitmovin.player.api.event

Contains all Bitmovin events and API to enable subscribing to those events.

Types

Link copied to clipboard
sealed class Event

Includes all possible events the Player or Source can emit.

Link copied to clipboard
interface EventEmitter<T : Event> : JavaEventEmitter<T>

Manages subscriptions to specific Events and notifies those subscribers when such an event is being emitted. Subscribers can be simple function types in Kotlin or EventListener implementations in Java. There are also reified versions of the EventEmitter API to allow for convenient usage from Kotlin.

Link copied to clipboard
interface EventListener<E : Event?>
Used to represent event listeners when Kotlin lambdas can not be used to conveniently subscribe to events (e.g.
Link copied to clipboard
interface JavaEventEmitter<T : Event>

Provides EventEmitter functionality that is more convenient for Java usage.

Link copied to clipboard
sealed class PlayerEvent : Event

Includes all possible events that only the Player can emit.

Link copied to clipboard
sealed class SourceEvent : Event

Includes all possible events that the Source or Player can emit.

Functions

Link copied to clipboard
inline fun <E : Event> EventEmitter<Event>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextPlayerEvent")
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextSourceEvent")
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.next(noinline action: (E) -> Unit)
Link copied to clipboard
inline fun <E : Event> EventEmitter<Event>.on(noinline action: (E) -> Unit)
@JvmName(name = "onPlayerEvent")
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.on(noinline action: (E) -> Unit)
@JvmName(name = "onSourceEvent")
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.on(noinline action: (E) -> Unit)